package com.cjh.exception;

/**
 * 自定义异常
 *
 */
public class ResultException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private Integer code = 500;

    private String msg;

    public ResultException(String msg) {
		super(msg);
		this.msg = msg;
	}
	
	public ResultException(String msg, Throwable e) {
		super(msg, e);
		this.msg = msg;
	}
	
	public ResultException(Integer code,String msg ) {
		super(msg);
		this.code = code;
		this.msg = msg;
	}
	
	public ResultException(Integer code,String msg, Throwable e) {
		super(msg, e);
		this.code = code;
		this.msg = msg;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
	
	
}